package com.woniuxy.goods.controller;

import com.woniuxy.goods.mapper.GoodsTypeMapper;
import com.woniuxy.goods.module.goods.GoodsType;
import com.woniuxy.goods.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GoodsTypeController {


    @Autowired
    GoodsTypeService goodsTypeService ;

    @GetMapping("/goods/typeList")
    public List<GoodsType> findTypeAll(){
        return goodsTypeService.findAll();
    }

}
